/*
 * Boisson.java
 *
 * Created on 30 octobre 2007, 18:56
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.ifips5.nal.epizza.web.model;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 *
 * @author Moi
 */
@XmlRootElement(name = "boisson")
public class Boisson implements Serializable
{
    @XmlAttribute(name = "id")
    private int idBoisson;
    
    @XmlAttribute(name = "name")
    @XmlID
    private String name;
    
    @XmlAttribute(name = "price")
    private double prix;
    
    
    /** Creates a new instance of Boisson */
    public Boisson()
    {
    }

    
    public Boisson(int id, String name, double prix)
    {
        this.idBoisson = id;
        this.name = name;
        this.prix = prix;
    }
    
    
    
    //////////////////////
    // Getters and Setters 
    
    
    public int getIdBoisson()
    {
        return idBoisson;
    }

    @XmlTransient
    public void setIdBoisson(int idBoisson)
    {
        this.idBoisson = idBoisson;
    }

    public String getName()
    {
        return name;
    }

    @XmlTransient
    public void setName(String name)
    {
        this.name = name;
    }

    public double getPrix()
    {
        return prix;
    }

    @XmlTransient
    public void setPrix(double prix)
    {
        this.prix = prix;
    }
    
}
